import { genMessage } from "../helper";
import antdLocale from "ant-design-vue/es/locale/zh_CN";
if (antdLocale.Upload) {
  antdLocale.Upload.uploading = "上传中";
}
if (antdLocale.DatePicker?.lang) {
  antdLocale.DatePicker.lang.placeholder = "请选择";
}
import "dayjs/locale/zh-cn";
const modules = import.meta.glob<Record<string, any>>("./zh_CN/**/*.ts", { eager: true });
export default {
  message: {
    ...genMessage(modules, "zh_CN"),
    antdLocale,
  },
  dayjsLocaleName: "zh-cn",
};
